package com.atguigu.gmall.realtime.app.dwm;

import com.ibm.icu.text.SimpleDateFormat;

import java.text.ParseException;
import java.util.Date;

public class DateTest {
    public static void main(String[] args) throws ParseException {
        String t = "2020-05-15 23:44:06";
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date p = sdf.parse(t);
        System.out.println(p);
        System.out.println(p.getTime());

    }
}
